<?php

/**
  Document   : home
  Created on : 15.06.2013., 16.31.43
  Author     : Sasa
  Description:
 */


if( isset($user) )
  //$user_name = ( $user->name!="" )?$user->name:$user->username;
  $user_name = $user->username;
else
  $user_name = "";


?>

<div id="f_main">
 	<div class="f_container">
    
    <h3>
      <?php
      if( true == $support_is_online)
        echo "<span class='online' title='Online'></span>";
      else
        echo "<span class='offline' title='Offline'></span>";
      ?>
      <?php echo lang('menu_support'); ?> 
    </h3>
    <div class="block-left">
      
    	<img class="profil" src="<?php echo base_url(); ?>img/support.jpg" alt="<?php echo lang('menu_support'); ?> " />        
         
        
    </div><!--end block-left-->
    <div class="block">
    	
        <h4><?php echo lang('my_messages'); ?></h4>
        
        <div class="conversation-block" id='messages_list'>
        <?php  
        
        $this->load->view('support/messages_list');
        
        ?>
        </div><!-- End message list -->
        
        <textarea class="chat-box" name="" id="message" cols="" rows="" placeholder="<?php echo lang('input_message'); ?>"></textarea>
        
        <input class="save" name="" type="button" id="send_support_message" value="<?php echo lang('send_message'); ?>" />
        
        <div id="response"></div>
               
    </div><!--end block-->
    <div class="block-right">
    	<div class="side-module">
        
              <?php $this->load->view('modules/my_favorites'); ?>
          
        </div><!--End side-module-->
        <div class="basic-module">
          
              <?php $this->load->view('modules/whos_viewed_your_profile');  ?>
          
        </div><!--End basic-module-->
        <div class="side-module">
          
              <?php $this->load->view('modules/my_friends');  ?>
          
        </div><!--End side-module-->
    </div><!--end block-right-->
    </div><!--end f_container-->
 </div><!--end f_main-->

